
#ifndef USER_HTTP_H
#define USER_HTTP_H

#include <osapi.h>
#include <user_interface.h>
#include <espconn.h>
#include <mem.h>
#include "driver/uart.h"
#define WIFI_SSID "xxx"
#define WIFI_PASS "xxx"
#define HTTP_URL "http://yourserver.com/yourendpoint"
#define HTTP_SERVER "cyjx.cool"
#define HTTP_PORT 80
#define HTTP_PATH "/gg.php"
// Function prototypes
void wifi_event_handler_cb(System_Event_t *event);
void http_request(const char *name, ip_addr_t *ipaddr, void *callback_arg);
void send_http_request();
void sent_callback(void *arg);
void recv_callback(void *arg, char *pdata, unsigned short len);
void connect_callback(void *arg);
void reconnect_callback(void *arg, sint8 err);
void disconnect_callback(void *arg);

#endif //USER_bb